#include <math.h>

float floorf( float x ) _FLOAT_FUNC_REENTRANT {
  long r;
  r = x;
  if( r <= 0 )
  { return ( r + ( ( r > x ) ? -1 : 0 ) ); }
  else
  { return r; }
}
